package service.Impl;

import dao.AppInfoMapper;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import pojo.Info;
import service.AppInfoService;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;


@Service("AppService")
public class AppInfoServiceImpl implements AppInfoService{
    private static final Logger LOGGER= Logger.getLogger(AppInfoServiceImpl.class);
    @Resource
    private AppInfoMapper AppInfoMapper;
    public List<Info> findAPPInfo(String APKName) {
        List<Info> appList=new ArrayList<Info>();
        try{
            appList=AppInfoMapper.qryAppInfoByAPKName(APKName);
        }catch (Exception e){
            LOGGER.error("AppInfoMapper.qryAppByAPKName(APKName)信息查询失败"+e.getMessage());
        }
        return appList;
    }
}
